<html>

<head>

<script language="JavaScript">

   function callJS(arg) { 

      document.getElementById('replaceme').innerHTML = arg;

   }

</script>

</head>

<body>

<h2>WebView</h2>

<p>

<a href="#" onclick="window.alert('Alert from JavaScript')"> 

   Display JavaScript alert</a>

</p>

<p>

<a href="#" onclick="window.android.callAndroid('Hello from Browser')"> 

   Call Android from JavaScript</a>

</p>

<p id="replaceme"> 

</p>

</body>

</html>